import scrapy


class XiaoSpider(scrapy.Spider):
    name = "xiao"
    allowed_domains = ["4399.com"]
    start_urls = ["https://4399.com"]

    def parse(self, response):
        print(response.text)
        print(response.xpath())
        print(response.css())
        #在此处理爬虫数据，然后放置到 yield data ,
        # 此时在GamePipeline 里面 item可以获取，但需要再setting 把ITEM_PIPELINES 放开
        data=response.text
        yield data
        pass
